﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Simple.Repository.Models.Article;

namespace Simple.Repository.Models.Market
{
    /// <summary>
    /// 商品分类
    /// </summary>
    public class CommodityCategory : BusinessFullEntityBase<Guid>
    {
        /// <summary>
        /// 类型名称
        /// </summary>
        public string TypeName { get; set; } = "";

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = "";


        /// <summary>
        /// 分类列表
        /// </summary>
        public List<Commodity> Commoditys = new List<Commodity>();

        public override void ConfigureEntity(ModelBuilder builder)
        {
            builder.Entity<CommodityCategory>(entity =>
            {
                entity.ToTable("Commodity_Category");
            });
        }


    }
}
